const fs = require('fs');
const path = require('path');

exports.keys = 'xiezhongfu;pengfei';

exports.siteFile = {
  // https://github.com/arasatasaygin/openlogos
  // https://www.iconfinder.com/iconsets/logos-brands-3
  '/favicon.ico': fs.readFileSync(path.join(__dirname, '../public/favicon.png')),
};

exports.view = {
  defaultViewEngine: 'nunjucks',
  mapping: {
    '.html': 'nunjucks',
  },
};

exports.news = {
  serverUrl: 'http://www.people.com.cn/rss/rect_default.json',
};

exports.middleware = [
  'robot'
];
exports.robot = {
  ua: [
    /Baiduspider/i,
  ]
};